<template>
  <div class="layout-main">
    <router-view></router-view>

    <Spin v-if="spinning" fix>
      <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
      <div>Loading</div>
    </Spin>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'App',
  computed: {
    ...mapState(['spinning']),
  },
}
</script>
